package 我的Java学习_算法基础.day_05;

public class _075_旋转词 {
    public static void main(String[] args) {
        String s1 = "abcde",s2="ceabd";
        System.out.println(check(s1,s2));
    }
    static  boolean check(String s1,String s2){
        if(s1.length()!=s2.length()){
            return false;
        }
        StringBuilder sb = new StringBuilder(s2);
        sb.append(s2);
        return sb.toString().contains(s1);
    }
}
